package com.eastjet.maintenance.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 备件领用
 * @TableName pj_acceptance
 */
@TableName(value ="pj_acceptance")
@Data
public class PjAcceptance implements Serializable {
    /**
     * 备件领用主键id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 领用单号
     */
    private String receiptNumber;

    /**
     * 领用主题
     */
    private String receivingQuestions;

    /**
     * 申请时间
     */
    private Date applicationTimeline;

    /**
     * 仓库外键id
     */
    private Integer warehouseName;

    /**
     * 领用申请人
     */
    private String applicants;

    /**
     * 所在部门
     */
    private String department;

    /**
     * 领用类型
     */
    private String receivingType;

    /**
     * 关联工单外键
     */
    private String relatedOrders;

    /**
     * 领用原因
     */
    private String cause;

    /**
     * 备注
     */
    private String remark;

    /**
     * 设备名称
     */
    private String equipmentName;

    /**
     * 设备编号
     */
    private String equipmentNumbering;

    /**
     * 规格型号
     */
    private String equipmentSpecification;

    /**
     * 设备类型
     */
    private String equipmentType;

    /**
     * 存放位置
     */
    private String storageLocation;

    /**
     * 存放位置
     */
    private String useDepartments;

    /**
     * 创建人
     */
    private String createdBy;

    /**
     * 创建时间
     */
    private Date creationTime;

    /**
     * 更新人
     */
    private String updater;

    /**
     * 更新时间
     */
    private Date updated;

    /**
     * 逻辑删除
     */
    private Integer tombstone;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PjAcceptance other = (PjAcceptance) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getReceiptNumber() == null ? other.getReceiptNumber() == null : this.getReceiptNumber().equals(other.getReceiptNumber()))
            && (this.getReceivingQuestions() == null ? other.getReceivingQuestions() == null : this.getReceivingQuestions().equals(other.getReceivingQuestions()))
            && (this.getApplicationTimeline() == null ? other.getApplicationTimeline() == null : this.getApplicationTimeline().equals(other.getApplicationTimeline()))
            && (this.getWarehouseName() == null ? other.getWarehouseName() == null : this.getWarehouseName().equals(other.getWarehouseName()))
            && (this.getApplicants() == null ? other.getApplicants() == null : this.getApplicants().equals(other.getApplicants()))
            && (this.getDepartment() == null ? other.getDepartment() == null : this.getDepartment().equals(other.getDepartment()))
            && (this.getReceivingType() == null ? other.getReceivingType() == null : this.getReceivingType().equals(other.getReceivingType()))
            && (this.getRelatedOrders() == null ? other.getRelatedOrders() == null : this.getRelatedOrders().equals(other.getRelatedOrders()))
            && (this.getCause() == null ? other.getCause() == null : this.getCause().equals(other.getCause()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getEquipmentName() == null ? other.getEquipmentName() == null : this.getEquipmentName().equals(other.getEquipmentName()))
            && (this.getEquipmentNumbering() == null ? other.getEquipmentNumbering() == null : this.getEquipmentNumbering().equals(other.getEquipmentNumbering()))
            && (this.getEquipmentSpecification() == null ? other.getEquipmentSpecification() == null : this.getEquipmentSpecification().equals(other.getEquipmentSpecification()))
            && (this.getEquipmentType() == null ? other.getEquipmentType() == null : this.getEquipmentType().equals(other.getEquipmentType()))
            && (this.getStorageLocation() == null ? other.getStorageLocation() == null : this.getStorageLocation().equals(other.getStorageLocation()))
            && (this.getUseDepartments() == null ? other.getUseDepartments() == null : this.getUseDepartments().equals(other.getUseDepartments()))
            && (this.getCreatedBy() == null ? other.getCreatedBy() == null : this.getCreatedBy().equals(other.getCreatedBy()))
            && (this.getCreationTime() == null ? other.getCreationTime() == null : this.getCreationTime().equals(other.getCreationTime()))
            && (this.getUpdater() == null ? other.getUpdater() == null : this.getUpdater().equals(other.getUpdater()))
            && (this.getUpdated() == null ? other.getUpdated() == null : this.getUpdated().equals(other.getUpdated()))
            && (this.getTombstone() == null ? other.getTombstone() == null : this.getTombstone().equals(other.getTombstone()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getReceiptNumber() == null) ? 0 : getReceiptNumber().hashCode());
        result = prime * result + ((getReceivingQuestions() == null) ? 0 : getReceivingQuestions().hashCode());
        result = prime * result + ((getApplicationTimeline() == null) ? 0 : getApplicationTimeline().hashCode());
        result = prime * result + ((getWarehouseName() == null) ? 0 : getWarehouseName().hashCode());
        result = prime * result + ((getApplicants() == null) ? 0 : getApplicants().hashCode());
        result = prime * result + ((getDepartment() == null) ? 0 : getDepartment().hashCode());
        result = prime * result + ((getReceivingType() == null) ? 0 : getReceivingType().hashCode());
        result = prime * result + ((getRelatedOrders() == null) ? 0 : getRelatedOrders().hashCode());
        result = prime * result + ((getCause() == null) ? 0 : getCause().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getEquipmentName() == null) ? 0 : getEquipmentName().hashCode());
        result = prime * result + ((getEquipmentNumbering() == null) ? 0 : getEquipmentNumbering().hashCode());
        result = prime * result + ((getEquipmentSpecification() == null) ? 0 : getEquipmentSpecification().hashCode());
        result = prime * result + ((getEquipmentType() == null) ? 0 : getEquipmentType().hashCode());
        result = prime * result + ((getStorageLocation() == null) ? 0 : getStorageLocation().hashCode());
        result = prime * result + ((getUseDepartments() == null) ? 0 : getUseDepartments().hashCode());
        result = prime * result + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode());
        result = prime * result + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode());
        result = prime * result + ((getUpdater() == null) ? 0 : getUpdater().hashCode());
        result = prime * result + ((getUpdated() == null) ? 0 : getUpdated().hashCode());
        result = prime * result + ((getTombstone() == null) ? 0 : getTombstone().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", receiptNumber=").append(receiptNumber);
        sb.append(", receivingQuestions=").append(receivingQuestions);
        sb.append(", applicationTimeline=").append(applicationTimeline);
        sb.append(", warehouseName=").append(warehouseName);
        sb.append(", applicants=").append(applicants);
        sb.append(", department=").append(department);
        sb.append(", receivingType=").append(receivingType);
        sb.append(", relatedOrders=").append(relatedOrders);
        sb.append(", cause=").append(cause);
        sb.append(", remark=").append(remark);
        sb.append(", equipmentName=").append(equipmentName);
        sb.append(", equipmentNumbering=").append(equipmentNumbering);
        sb.append(", equipmentSpecification=").append(equipmentSpecification);
        sb.append(", equipmentType=").append(equipmentType);
        sb.append(", storageLocation=").append(storageLocation);
        sb.append(", useDepartments=").append(useDepartments);
        sb.append(", createdBy=").append(createdBy);
        sb.append(", creationTime=").append(creationTime);
        sb.append(", updater=").append(updater);
        sb.append(", updated=").append(updated);
        sb.append(", tombstone=").append(tombstone);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}